package com.gxa.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 采用Feign的负载均衡方式,底层依旧是Ribbon
 * 只是Feign对Ribbon进行了二次封装
 *
 * @author LENOVO
 */
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@EnableFeignClients
public class EurekaFeignApp {

    public static void main(String[] args) {
        SpringApplication.run(EurekaFeignApp.class, args);
    }
}

